<?php

namespace App\Admin\Extensions;

use Encore\Admin\Admin;

/**
 * 删除
 */
class DeleteOp extends BaseAction
{
    protected function render()
    {
        Admin::script($this->script($this->actionUrl));
        $notbtn = $this->buildButton('fail', '删除', ['id' => $this->id, 'status' => 0]);
        if ($this->row->flag == 1) $str = [$notbtn];
        else $str = [];
        return implode('<br/><br/>', $str);
    }
}
